package samples.spring.defns.beans;

import java.util.Objects;

public class ImportBean2 {
    public ImportBean2() {

    }

    public ImportBean2(String name) {
        this.name = name;
    }

    private String name;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        if (Objects.isNull(this.name) || Objects.equals(this.name, "")) {
            return "this is instance of ImportBean2";
        }
        return "my name is: " + this.name;
    }
}
